# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-habanero
_pkgorig=habanero
pkgver=1.2.2
pkgrel=0
pkgdesc="A low level client for working with Crossref’s search API"
url="https://github.com/sckott/habanero"
arch="noarch"
license="MIT"
options="!check" # disable due to the network tests
depends="python3 py3-requests py3-tqdm"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-cov"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/h/habanero/habanero-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
a2f6448fb7829ae03b568080e93d595e3d5f4e5d129720b5740ff96f78f7fc294412ad5792ac39811e7a653374f9e8239ec9e5b9b70798636023884f31c7cdbc  py3-habanero-1.2.2.tar.gz
"
